package com.ruoyi.client.domain.page;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClientPageParam<T> {
    /**
     * 当前页数
     */
    private Long currentPage = 1l;
    /**
     * 每页条数
     */
    private Long pageSize = 5l;
    public <T> Page<T> buildPage(){
        Page<T> page = Page.of(currentPage, pageSize);
        return page;
    }
}
